package com.yhm.test.testSpringMvc;

import static org.junit.Assert.*;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.yhm.testSpringMvc.TestBean;


@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:spring-test.xml")
public class testStartUp {

	private static final Logger log = LoggerFactory.getLogger(testStartUp.class);

	   @Autowired
	    private TestBean testBean;
	   
	@Test
	public void test() {
		log.error("测试下日志错误输出");
		log.info("测试下info日志输出级别");
		log.info( testBean.getString());
		
		assertTrue(true);
//		fail("Not yet implemented");
	}

}
